{extends file="../insider_base.html"} 
{block name=insider}

{*if setting('is_feedback_list')}
<ul class="list cms_case1">
    {foreach $list as $item}
    <li><span>[{$item.created|date_format:'Y-m-d'}]</span><a href="{call view_link item=$item}">{$item.title}</a></li>
    {/foreach}
</ul>
{/if*}

<div id="cms_feedback">
    {if $error}
    <div class="cms_error">
        {foreach $error as $e}
        <p>{$e}</p>
        {/foreach}
    </div>
    {/if}
    {$form->create(['type'=>'file','class'=>'MainForm','novalidate'=>true])}
    <div class="cms_tr">
        <div class="cms_td cms_title">姓　　名：</div>
        <div class="cms_td cms_init">
            {$field="truename"}{$form->text("$mdl.$field",['class' => 'text form_item sizing'])}
        </div>
    </div>
    <div class="cms_tr">
        <div class="cms_td cms_title">联系方式：</div>
        <div class="cms_td cms_init">
            {$field="mobile"}{$form->text("$mdl.$field",['class' => 'text form_item sizing'])}
        </div>
    </div>
    <div class="cms_tr">
        <div class="cms_td cms_title">留言标题：</div>
        <div class="cms_td cms_init">
            {$field="title"}{$form->text("$mdl.$field",['class' => 'text form_item sizing'])}
        </div>
    </div>
    <div class="cms_tr">
        <div class="cms_td cms_title">留言内容：</div>
        <div class="cms_td cms_init">
            {$field="content"}{$form->textarea("$mdl.$field",['class' => 'textarea form_item sizing'])}
        </div>
    </div>
    <div class="cms_tr captcha">
        <div class="cms_td cms_title">验证码：</div>
        <div class="cms_td cms_init">
            {$form->text("captcha",['class'=>'en-font text form_item sizing captcha',name=>'captcha','value'=>'','autocomplete'=>'off'])}
            <span class="vimg"><img  src="{captcha_src()}" class="captcha_src" onclick="this.src='{captcha_src()}?'+Math.random()"/></span>
        </div>
    </div>
    <div class="cms_tr">
        <div class="cms_init cms_submit">
            <input  type="submit" class="cms_tran" value="提交"/>
        </div>        
    </div>
    {$form->end()}
</div>
{/block}